<?php
/**
 * Bookings View for RoomBooking Component
 * 
 * @version    1.0
 * @package    Joomla
 * @subpackage RoomBooking
 * @copyright (C) 2011 Giovanni Marzulli
 * @license	   GNU/GPL
 */
 
// No direct access
defined( '_JEXEC' ) or die( 'Restricted access' );
 
jimport( 'joomla.application.component.view' );
 
class RoomBookingViewBookinglist extends JView
{
	 /**
     * Bookings view display method
     * @return void
     **/
    function display($tpl = null)
    {
        // Get data from the model
        $modelBookings = & $this->getModel('bookings');
        
        $items = $modelBookings->getData();
        
//        var_dump($items);
 
        $this->assignRef( 'items', $items );
 
        parent::display($tpl);
    }
}
